package com.station.search.domain.converter;

import com.station.search.domain.StationCheckRecord;
import com.station.search.domain.dto.StationCheckRecordDTO;
import com.station.search.domain.vo.StationCheckRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author: JT
 * @date: 2021/10/26
 * @Title:
 */
@Mapper
public interface StationCheckRecordConverter {

    StationCheckRecordConverter INSTANCE = Mappers.getMapper(StationCheckRecordConverter.class);

    @Mapping(source = "checkDate", target = "checkDate", dateFormat = "yyyy-MM-dd HH:mm:ss")
    StationCheckRecord voToDo(StationCheckRecordVO stationCheckRecordVO);

    StationCheckRecordDTO doToDto(StationCheckRecord recordDo);
}
